import axios from "axios";


export default async function myArrRequest(myArr:string[],delay=500){
      const resArr:any[]= [];
      for(let i = 0;i<myArr.length;i++){
          await axios.get(myArr[i]).then(res=>resArr.push(res.data));
          await new Promise((resolve)=>{setTimeout(resolve,delay)})
      }
      return resArr;
}

